package com.mtsmda.chapter2.overridingEx;

import java.io.IOException;


public class Animal {

	private String eatAnimal;

	public String getEatAnimal() {
		return eatAnimal;
	}

	public void setEatAnimal(String eatAnimal) {
		this.eatAnimal = eatAnimal;
	}
	
	public void eat(){
		System.out.println("Animals eat");
	}
	
	public void name() throws Exception{
		System.out.println("Animal");
	}
	
	protected void privateOverrideMethod() throws IOException{
		System.out.println("Animal.privateOverrideMethod()");
	}
	
	public void doStuff(String name, int age){
		System.out.println(name + " " + "age - " + age);
	}

}